CenterArray
CenterArray[a,n] creates a list of length n with the elements of a at the center and zeros elsewhere.
CenterArray[a,{n1,n2,…}] creates an n1×n2×… array with the array a at the center and zeros elsewhere.
CenterArray[a,nspec,pad] uses pad instead of zero for the background.
CenterArray[nspec] creates an array with a single 1 at the center and zeros elsewhere.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.